package architect.design.patterns.behavior.command;

/**
 * 关闭文件命令
 *
 * @author guanxin
 * @date 2018/5/6 13:18
 */

public class CloseFileCommand implements Command {

    private FileSystemReceiver fileSystem;

    public CloseFileCommand(FileSystemReceiver fs) {
        this.fileSystem = fs;
    }

    @Override
    public void execute() {
        this.fileSystem.closeFile();
    }
}
